package com.eportal.service;

import java.io.Serializable;
import java.sql.Connection;
import java.util.List;

import com.eportal.ORM.MpayUser;
import com.eportal.ORM.TermReadyView;

public interface AdminService {
	
	public void delete(Object object);
	
	public Object loadById(Class clazz,Serializable id);
	
	public Object loadObject(String hql);
	public List findBySql(String sql);
	public void delById(Class clazz,Serializable id);
	public long sum(String sql);
	public void saveOrUpdate(Object obj);
	public void updateDkAccount(int id);
	public void save(Object obj);
	public List listAll(String clazz);
	
	public List listAll(String clazz,int pageNo,int pageSize);
	
	public int countAll(String clazz);
	
	public List query(String hql);
	
	public List query(String hql,int pageNo,int pageSize);
	
	public int countQuery(String hql);
	
	public int update(String hql);
	
	public Connection getConnection();
	
	public void saveUser(TermReadyView ready);
}
